<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogExamine"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogMain"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
    
  	 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>粮油集团办公自动化协作平台</title>
	<link href="style/txlz7.css" rel="stylesheet" type="text/css" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript">
			function submit()
			{
				msg();
				document.form1.submit();
			}
			function back()
			{
				history.back(-1);
			}
		</script>
  </head>
  
  <body>
  	<%
  	WorkLogMain workLogMain = (WorkLogMain)request.getAttribute("workLogMain");
  	%>
  	<div id="right" style="height: 92%">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" >
          <tr>
            <td background="images/contacttitle01.gif" width="28" height="26"></td>
            <td class="td1px">添加工作日志完成情况</td>
            <td background="images/contacttitle03.gif" width="72" height="26">&nbsp;</td>
          </tr>
      </table>
      <div class="contact_content">
         <div class="tab_add">
            <form id="form1" name="form1" method="post" action="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogSituation.do">
            <table width="100%" border="0" cellspacing="0" class="tab_add01">
                <tr>
                  <td>
                  </td>
                </tr>
                <tr>
                  <td>日志原文：</td>
                </tr>
                <tr>
                  <td>
                    <table width="99%" border="0" cellspacing="0" cellpadding="0" class="texttab">
                      <tr>
                        <td>
                        	<%=workLogMain.getContent() %>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td>领导批示意见：</td>
                </tr>
                <tr>
                  <td>
                  	<%
                  	Iterator  iterator = workLogMain.getWorkLogExamines().iterator();
                	while(iterator.hasNext())
                	{
                		WorkLogExamine workLogExamine = (WorkLogExamine)iterator.next();
                		
                		if(workLogExamine.getExamineState() == 1)
                		{
                			out.println(workLogExamine.getExamineContent() + "<br/>");			
                		} 		
                	}
                  	%>
                  </td>
                </tr>
                <tr>
                  <td>请输入要完成情况：</td>
                </tr>
                <tr>
                  <td height="100"><textarea  name="contest" id="contest" style="width: 100%; height: 30px;"></textarea>
                  <script type="text/javascript">
					var oFCKeditor = new FCKeditor( 'contest' ) ;
					//oFCKeditor.BasePath = 'FCKeditor/' ;
					oFCKeditor.ToolbarSet = 'Default' ;
					oFCKeditor.Width = '98%' ;
					oFCKeditor.Height = '400' ;
					oFCKeditor.Value = '' ;
					oFCKeditor.ReplaceTextarea(); 
					//oFCKeditor.Create() ;
					</script>
                  </td>
                </tr>
                <tr>
                  <th><div align="center"><a href="javascript:submit()" ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:back()" ><img src="images/qx.gif" width="71" height="21" border="0" /></a></div></th>
                </tr>
              </table>
              	<input type="hidden" name="id" value="<%=workLogMain.getId() %>"/>
              </form>
          </div>

         
      </div>
</div>
  </body>
</html>
